package com.softeem.springcloud.service.impl;

import com.softeem.springcloud.dao.DeptDao;
import com.softeem.springcloud.pojo.Dept;
import com.softeem.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: springcloud
 * @author: zcp_will
 * @create: 2020-09-16 21:03
 * @description
 **/
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public Dept quaryDept(int id) {
        return deptDao.quaryDept(id);
    }

    @Override
    public List<Dept> quaryAll() {
        return deptDao.quaryAll();
    }
}
